package com.lai.qq.route.gateway.exception;


/**
 * 用户被踢出后继续发请求时抛出此异常
 *
 * @author: lai.quanqiang
 * @date : 2020/8/6
 */
public class BekickedException extends RuntimeException {

    public BekickedException(String message) {
        super(message);
    }
   /* //返回被踢
    OnlineInfo onlineInfo =(OnlineInfo)redisTemplate.opsForValue().get("device_"+params.getIdentifier());
    // 定义特定类型运行时异常，在统一异常处理中进行处理，查询返回设备信息、手机品牌、型号
        if(null!=onlineInfo&&1==onlineInfo.getLoginType()){
        //验证码登录
        String str=String.format(CodeEnum.CODE_VERIFY_22.getMessage(), DateUtils.GetYMDHMFromLong(onlineInfo.getTimeStamp()),onlineInfo.getDevicename());
        throw new BusinessException(CodeEnum.CODE_VERIFY_22.getCode(),str);
    }else{
        String str=String.format(CodeEnum.CODE_PASSWORD_22.getMessage(), DateUtils.GetYMDHMFromLong(onlineInfo.getTimeStamp()),onlineInfo.getDevicename());
        throw new BusinessException(CodeEnum.CODE_PASSWORD_22.getCode(),str);
    }*/


}
